﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using UniversityManagementSystem.Manager;

namespace UniversityManagementSystem.DAL
{
    public class Semester
    {
        SemesterManager manager = new SemesterManager();
        public int SemesterId { get; set; }
        public string SemesterName { get; set; }

        public List<Semester> GetAllSemesters()
        {
            try
            {
                return manager.GetAllSemesters();
            }
            catch (Exception exception)
            {
                throw new Exception("Error occured"+exception);
                throw;
            }
        }
    }
}